/**
 * 默认参数
 */

const defaultConfig = {
  // 支持的 markdown 文件后缀
  "markdownExtensions": ["markdown", "md"],

  // 是否解析 toc
  "markdownToc": false,

  // 是否解析公式
  "markdownKatex": true,

  // 是否解析流程图
  "markdownFlowchart": true,

  // 是否解析时序图
  "markdownSequenceDiagrams": true,

  // 是否显示代码块行号
  "markdownCodeLine": false,

  // 默认主题：dark、light
  "theme": "dark",

  // 历史记录数量
  "historyCount": 100,

  // 解析文章目录深度
  "directoryMaxDepth": 3,

  // 系统英文字体
  "systemFontEN": '',

  // 系统中文字体
  "systemFontZH": '',

  // markdown CSS
  "markdownCSS":
`.markdown-body {
    padding: 32px;
    line-height: 1.6;
}

.markdown-body h1 {
    margin: 50px 0 20px 0;
    font-size: 32px;
    height: 54px;
    line-height: 54px;
    font-weight: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.markdown-body h2 {
    margin: 35px 0 20px;
    font-size: 28px;
    height: 40px;
    line-height: 40px;
    font-weight: 100;
}

.markdown-body h3 {
    margin: 20px 0;
    font-size: 23px;
    height: 40px;
    line-height: 40px;
    font-weight: 300;
}

.markdown-body h4 {
    margin: 10px 0;
    font-size: 18px;
    height: 20px;
    line-height: 20px;
    font-weight: 400;
}

.markdown-body h5,
.markdown-body h6 {
    margin: 10px 0;
    font-size: 16px;
    height: 20px;
    line-height: 20px;
    font-weight: 400;
}

.markdown-body a {
    text-decoration: none;
    color: #448aff;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body img {
    max-width: 100%;
}

.markdown-body ul,
.markdown-body ol {
    padding: 0;
    margin: 0 0 20px 25px;
}

.markdown-body li {
    line-height: 27px;
}

.markdown-body p,
.markdown-body table,
.markdown-body pre,
.markdown-body div {
    margin: 0 0 20px;
}

.markdown-body pre {
    padding: 16px;
    border-radius: 2px;
    background-color: #161616;
    overflow-x: auto;
}

.markdown-body code {
    font-family: Consolas, Roboto, Noto Sans SC, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #c2a872;
}

.markdown-body table {
    position: relative;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border-top: none;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
}

.markdown-body tbody tr {
    transition: background-color .28s cubic-bezier(.4,0,.2,1);
}

.markdown-body tbody tr:hover {
    background-color: #313131;
}

.markdown-body th,
.markdown-body td {
    position: relative;
    box-sizing: border-box;
    padding: 12px 28px;
    text-align: left;
    vertical-align: middle;
}

.markdown-body th {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 32px;
    color: rgba(255, 255, 255, .54);
    text-overflow: ellipsis;
}

.markdown-body td {
    font-size: 14px;
    line-height: 24px;
    color: rgba(255, 255, 255, .87);
    border-top: 1px solid rgba(255, 255, 255, .12);
}`,

  // 亮色主题的 markdown CSS
  "markdownLightCSS":
`.markdown-body pre {
    background-color: #f1f1f1;
}

.markdown-body h1 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.markdown-body table {
    border: 1px solid rgba(0, 0, 0, .12);
}

.markdown-body tbody tr:hover {
    background-color: #eee;
}

.markdown-body th {
    color: rgba(0, 0, 0, .54);
}

.markdown-body td {
    color: rgba(0, 0, 0, .87);
    border-top: 1px solid rgba(0, 0, 0, .12);
}`,

  // 亮色主题的代码高亮 CSS
  "highlightLightCSS":
`.hljs {
  display: block;
  background: white;
  padding: 0.5em;
  color: #333333;
  overflow-x: auto;
}

.hljs-comment,
.hljs-meta {
  color: #969896;
}

.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote {
  color: #df5000;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
  color: #a71d5d;
}

.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-attribute {
  color: #0086b3;
}

.hljs-section,
.hljs-name {
  color: #63a35c;
}

.hljs-tag {
  color: #333333;
}

.hljs-title,
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #795da3;
}

.hljs-addition {
  color: #55a532;
  background-color: #eaffea;
}

.hljs-deletion {
  color: #bd2c00;
  background-color: #ffecec;
}

.hljs-link {
  text-decoration: underline;
}`,

  // 暗色主题的代码高亮 CSS
  "highlightDarkCSS":
`.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  /*background: #232323;*/
  background: #303030;
  color: #e6e1dc;
}

.hljs-comment,
.hljs-quote {
  color: #bc9458;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag {
  color: #c26230;
}

.hljs-string,
.hljs-number,
.hljs-regexp,
.hljs-variable,
.hljs-template-variable {
  color: #a5c261;
}

.hljs-subst {
  color: #519f50;
}

.hljs-tag,
.hljs-name {
  color: #e8bf6a;
}

.hljs-type {
  color: #da4939;
}


.hljs-symbol,
.hljs-bullet,
.hljs-built_in,
.hljs-builtin-name,
.hljs-attr,
.hljs-link {
  color: #6d9cbe;
}

.hljs-params {
  color: #d0d0ff;
}

.hljs-attribute {
  color: #cda869;
}

.hljs-meta {
  color: #9b859d;
}

.hljs-title,
.hljs-section {
  color: #ffc66d;
}

.hljs-addition {
  background-color: #144212;
  color: #e6e1dc;
  display: inline-block;
  width: 100%;
}

.hljs-deletion {
  background-color: #600;
  color: #e6e1dc;
  display: inline-block;
  width: 100%;
}

.hljs-selector-class {
  color: #9b703f;
}

.hljs-selector-id {
  color: #8b98ab;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}`
};

export default defaultConfig;